package online.flowerinsnow.minecraft.bukkit.manhunt.manager;

import org.bukkit.Location;
import org.bukkit.entity.Player;
import online.flowerinsnow.minecraft.bukkit.manhunt.core.compass.ITrackingLocation;

public interface ICompassManager {
    /**
     * 返回玩家的指南针应该指向的目标地点
     */
    Location getPlayerTracking(Player player);

    /**
     * 判断玩家应该指向的玩家并保存
     */
    void refresh();

    /**
     * 应用全部修改
     */
    void update();

    Location getLocationLodestone(Location location);






    @Deprecated
    Location getPlayerLastKnownLocation(Player player);

    @Deprecated
    void setPlayerLastKnownLocation(Player player, Location location);

    @Deprecated
    void resetPlayerLastKnownLocation(Player player);

    @Deprecated
    void resetAllLastKnownLocation();

    /**
     * 返回玩家的磁石
     */
    @Deprecated
    Location getLodestone(ITrackingLocation tracking);

    /**
     * 返回玩家的指南针应该指向的目标
     */
    @Deprecated
    ITrackingLocation getTracking(Player player);

}
